/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.infor.entity;

import com.jeeplus.modules.infor.entity.District;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 运输线路Entity
 * @author sld
 * @version 2017-11-23
 */
public class HaulingTrack extends DataEntity<HaulingTrack> {
	
	private static final long serialVersionUID = 1L;
	private District start;		// 起始区域
	private District end;		// 目的区域
	private String name;		// 线路名称
	private String code;		// 线路编码
	private String distance;		// 实际运距
	private String yj;		// 运价
	private String project;		// 项目
	
	public HaulingTrack() {
		super();
	}

	public HaulingTrack(String id){
		super(id);
	}

	@ExcelField(title="起始区域", fieldType=District.class, value="start.name", align=2, sort=6)
	public District getStart() {
		return start;
	}

	public void setStart(District start) {
		this.start = start;
	}
	
	@ExcelField(title="目的区域", fieldType=District.class, value="end.name", align=2, sort=7)
	public District getEnd() {
		return end;
	}

	public void setEnd(District end) {
		this.end = end;
	}
	
	@ExcelField(title="线路名称", align=2, sort=8)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@ExcelField(title="线路编码", align=2, sort=9)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@ExcelField(title="实际运距", align=2, sort=10)
	public String getDistance() {
		return distance;
	}

	public void setDistance(String distance) {
		this.distance = distance;
	}
	
	@ExcelField(title="项目", align=2, sort=11)
	public String getProject() {
		return project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getYj() {
		return yj;
	}

	public void setYj(String yj) {
		this.yj = yj;
	}
}